﻿@{
    ViewBag.Title = "List3";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@{
    ViewBag.Title = "List3";
}
@model IEnumerable <JChatSerVices.CountryService.countryproperties>
           
@using (Html.BeginForm("List4", "Admin", new { _id = "_id" }, FormMethod.Get, new { enctype = "multipart/form-data", }))
{
    @Html.TextBox("_id");
    <input type ="submit" value="Filter" />
}
           
           <table cellspacing="0"  class="listTable" id="postList">
				
					<thead>
						<tr>
							
							<th>id</th>
							<th>name</th>
					
							
                         
                           
						</tr>
					</thead>
					
					<tbody>
                      @foreach (var item in Model)
                      { 
						<tr>
							
							
							<td valign="middle" align="center">@item.CountryID</td>
                            <td valign="middle" align="center">@item.NameCountry</td>
							
				
                            
						</tr>
                      }
						
					</tbody>
					<!-- /Tbody -->
				</table>
@*<script type="text/javascript">
    $(document).ready(function () {

        var url = '/Admin/List3';

        $.getJSON(url, function (data) {

            $.each(data, function (key, val) {

                var user = '<tr><td>' + val.CountryID + '</td> <td>' + val.NameCountry + '</td></tr>';

                $('#country').append(user);

            });
        });
    });
</script>*@